package com.ruoyi.volunteermajor.service.impl;

import com.ruoyi.volunteermajor.domain.ExamVolunteerMajor;
import com.ruoyi.volunteermajor.mapper.ExamVolunteerMajorMapper;
import com.ruoyi.volunteermajor.service.IExamVolunteerMajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamVolunteerMajorServiceImpl implements IExamVolunteerMajorService {

    @Autowired
    private ExamVolunteerMajorMapper volunteerMajorMapper;

    @Override
    public ExamVolunteerMajor selectVolunteerMajorById(Long id) {
        return volunteerMajorMapper.selectVolunteerMajorById(id);
    }

    @Override
    public List<ExamVolunteerMajor> selectVolunteerMajorListByCollegeId(Long collegeId) {
        return volunteerMajorMapper.selectVolunteerMajorListByCollegeId(collegeId);
    }

    @Override
    public int insertVolunteerMajor(ExamVolunteerMajor volunteerMajor) {
        return volunteerMajorMapper.insertVolunteerMajor(volunteerMajor);
    }

    @Override
    public int updateVolunteerMajor(ExamVolunteerMajor volunteerMajor) {
        return volunteerMajorMapper.updateVolunteerMajor(volunteerMajor);
    }

    @Override
    public int deleteVolunteerMajorById(Long id) {
        return volunteerMajorMapper.deleteVolunteerMajorById(id);
    }
}
